#ifndef QMYPROGRESSBAR_H
#define QMYPROGRESSBAR_H

#include "../../lib/shared/qobjecthost.h"

#include <QProgressBar>

class QProgressBarHost: public QObjectHost
{
    Q_OBJECT
public:
    QProgressBarHost(QWidget* wid);
public slots:
    int     value();
signals:
    void    setRange(int minimum,int maximum);
    void    setValue(int value);
};

class QMyProgressBar: public QProgressBar
{
    Q_OBJECT
public:
    QMyProgressBar(QWidget *parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    valueChanged_signal(int value);
    void    updatePropertyAttribute();
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost *m_host;

};

#endif // QMYPROGRESSBAR_H
